# coding:utf-8
import pandas as pd
from sklearn.cluster import DBSCAN

data_source = pd.read_excel("iris.xlsx")
inputs = data_source[['花萼长度', '花萼宽度']].values
clusterer = DBSCAN(eps=0.3, min_samples=5)
print(clusterer)
clusterer.fit(inputs)
print(clusterer.labels_)

